<?php

/**
 * Usuario form.
 *
 * @package    SCCEIC
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class UsuarioForm extends BaseUsuarioForm
{
  public function configure()
  {   
		$this->setWidget("password", new sfWidgetFormInputHidden());
		$this->setWidget("mail", new sfWidgetFormInput());
		$this->setValidator("mail",new sfValidatorEmail(array('max_length' => 200, 'required' => true)));	  	
		$this->setValidator("password",new sfValidatorString(array('max_length' => 200,'required' => false)));	  	


		$this->setWidget("carnet", new sfWidgetFormInput());
		$this->widgetSchema->setLabel("mail","E-mail: ");
		$this->widgetSchema->setLabel("nombre","Nombre: ");
		$this->widgetSchema->setLabel("carnet","Carnet: ");	
		parent::configure();
  }
}
